<?php

class Reservation extends Module
{
	function __construct ($db){
		$this->set_db($db);
	}

	function get_all_price(){

		$result = array();
		$price = $this->get_all("reservation_ticket");

		$result['adult'] = $price[0]['price'];
		$result['kids'] = $price[1]['price'];
		$result['guest'] = $price[2]['price'];
		$result['senior'] = $price[3]['price'];

		return $result;
	}

	function add_reservation($data){
		$this->db->insert("reservation", $data);
	}
}

?>